﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TF.Access;
using System.Collections.Generic;

public class RetStringObject
{
    private bool ret;
    private string retString;

    private bool isCurrentUserAttend;
    private bool isCurrentUserAttention;

    private int listCount;

    private string str1;

    private int picCount;

    private string str2;

    public string Str2
    {
        get
        {
            return str2;
        }
        set
        {
            str2 = value;
        }
    }

    public int PicCount
    {
        get
        {
            return picCount;
        }
        set
        {
            picCount = value;
        }
    }

    public string Str1
    {
        get
        {
            return str1;
        }
        set
        {
            str1 = value;
        }
    }

    public int ListCount
    {
        get
        {
            return listCount;
        }
        set
        {
            listCount = value;
        }
    }

    public bool IsCurrentUserAttention
    {
        get
        {
            return isCurrentUserAttention;
        }
        set
        {
            isCurrentUserAttention = value;
        }
    }

    public bool IsCurrentUserAttend
    {
        get
        {
            return isCurrentUserAttend;
        }
        set
        {
            isCurrentUserAttend = value;
        }
    }

    public string RetString
    {
        get
        {
            return retString;
        }
        set
        {
            retString = value;
        }
    }

    public bool Ret
    {
        get
        {
            return ret;
        }
        set
        {
            ret = value;
        }
    }
}

public class JsonRetObject
{
    private bool ret;
    private string url;
    private int edId;
    private int evId;
    private int fromEdId;
    private int ehId;
    private string trips;
    private List<TF_LeaveWord> leaveWords;
    private string ehsInnerHTML;

    private string vsInnerHTML;
    private string evsInnerHTML;

    private string newFriends;

    private List<TF_EventDetail> eds;
    private List<TF_EventView> evs;

    private List<ViewCountObject> viewCountList;

    private List<TF_EventH> ehs;

    private TF_City cityInfo;

    private bool isLogin;

    private string searchViews;
    private int searchViewsCount;

    private string searchEventHs;
    private int searchEventHsCount;

    private int maxPageIndex;

    private int objectCount;

    private int regResult;

    /// <summary>
    /// 0:该用户已存在
    /// </summary>
    public int RegResult
    {
        get
        {
            return regResult;
        }
        set
        {
            regResult = value;
        }
    }

    public int ObjectCount
    {
        get
        {
            return objectCount;
        }
        set
        {
            objectCount = value;
        }
    }

    public int MaxPageIndex
    {
        get
        {
            return maxPageIndex;
        }
        set
        {
            maxPageIndex = value;
        }
    }

    public int SearchEventHsCount
    {
        get
        {
            return searchEventHsCount;
        }
        set
        {
            searchEventHsCount = value;
        }
    }

    public string SearchEventHs
    {
        get
        {
            return searchEventHs;
        }
        set
        {
            searchEventHs = value;
        }
    }

    public int SearchViewsCount
    {
        get
        {
            return searchViewsCount;
        }
        set
        {
            searchViewsCount = value;
        }
    }

    public string SearchViews
    {
        get
        {
            return searchViews;
        }
        set
        {
            searchViews = value;
        }
    }

    public bool IsLogin
    {
        get
        {
            return isLogin;
        }
        set
        {
            isLogin = value;
        }
    }

    public TF_City CityInfo
    {
        get
        {
            return cityInfo;
        }
        set
        {
            cityInfo = value;
        }
    }

    public List<TF_EventH> Ehs
    {
        get
        {
            return ehs;
        }
        set
        {
            ehs = value;
        }
    }

    public string NewFriends
    {
        get
        {
            return newFriends;
        }
        set
        {
            newFriends = value;
        }
    }

    public string EhsInnerHTML
    {
        get
        {
            return ehsInnerHTML;
        }
        set
        {
            ehsInnerHTML = value;
        }
    }

    public List<ViewCountObject> ViewCountList
    {
        get
        {
            return viewCountList;
        }
        set
        {
            viewCountList = value;
        }
    }

    public List<TF_LeaveWord> LeaveWords
    {
        get
        {
            return leaveWords;
        }
        set
        {
            leaveWords = value;
        }
    }

    public string Trips
    {
        get
        {
            return trips;
        }
        set
        {
            trips = value;
        }
    }

    public string VsInnerHTML
    {
        get
        {
            return vsInnerHTML;
        }
        set
        {
            vsInnerHTML = value;
        }
    }

    public string EvsInnerHTML
    {
        get
        {
            return evsInnerHTML;
        }
        set
        {
            evsInnerHTML = value;
        }
    }

    public List<TF_EventDetail> Eds
    {
        get
        {
            return eds;
        }
        set
        {
            eds = value;
        }
    }

    public List<TF_EventView> Evs
    {
        get
        {
            return evs;
        }
        set
        {
            evs = value;
        }
    }

    public int EhId
    {
        get
        {
            return ehId;
        }
        set
        {
            ehId = value;
        }
    }

    public int FromEdId
    {
        get
        {
            return fromEdId;
        }
        set
        {
            fromEdId = value;
        }
    }

    public int EdId
    {
        get
        {
            return edId;
        }
        set
        {
            edId = value;
        }
    }

    public int EvId
    {
        get
        {
            return evId;
        }
        set
        {
            evId = value;
        }
    }

    public bool Ret
    {
        get
        {
            return ret;
        }
        set
        {
            ret = value;
        }
    }

    public string Url
    {
        get
        {
            return url;
        }
        set
        {
            url = value;
        }
    }
}

public class JsonObject<T>
{
    private List<T> objList;

    private int indexCount;

    private int pageIndex;
    private int pageSize;

    private int indexIndex;
    private int indexSize;

    private bool ret;

    public bool Ret
    {
        get
        {
            return ret;
        }
        set
        {
            ret = value;
        }
    }

    public int IndexCount
    {
        get
        {
            return indexCount;
        }
        set
        {
            indexCount = value;
        }
    }

    public int PageIndex
    {
        get
        {
            return pageIndex;
        }
        set
        {
            pageIndex = value;
        }
    }

    public int PageSize
    {
        get
        {
            return pageSize;
        }
        set
        {
            pageSize = value;
        }
    }

    public int IndexIndex
    {
        get
        {
            return indexIndex;
        }
        set
        {
            indexIndex = value;
        }
    }

    public int IndexSize
    {
        get
        {
            return indexSize;
        }
        set
        {
            indexSize = value;
        }
    }

    public List<T> ObjList
    {
        get
        {
            return objList;
        }
        set
        {
            objList = value;
        }
    }
}

#region JSON object

public class TestObject
{
    private List<TF_Province> provinces;
    public List<TF_Province> Provinces
    {
        get
        {
            return provinces;
        }
        set
        {
            provinces = value;
        }
    }
}

#endregion
